package com.m3958.firstgwt.client.place;

import com.m3958.firstgwt.client.MyPlace;
import com.m3958.firstgwt.client.types.ViewNameEnum;

public class WebSiteEditPlace extends MyPlace{

	private String webSiteId;
	
	public WebSiteEditPlace(String webSiteId){
		this.webSiteId = webSiteId;
	}
	
	@Override
	public String getToken() {
		if(webSiteId == null){
			return ViewNameEnum.WEBSITE_EDIT.toString().toLowerCase();
		}else{
			return ViewNameEnum.WEBSITE_EDIT.toString().toLowerCase() + "/" + webSiteId;
		}
	}

	public String getWebSiteId() {
		return webSiteId;
	}

	public void setWebSiteId(String webSiteId) {
		this.webSiteId = webSiteId;
	}

}
